<template>
  <view class="operation-container">
    <!-- 顶部导航栏 -->
    <view class="nav-bar">
      <view class="nav-left" @click="goBack">
        <uni-icons type="back" size="24"></uni-icons>
      </view>
      <view class="nav-title">运营配置</view>
    </view>
    
    <!-- 列表内容 -->
    <view class="list-container">
      <view class="list-item" @click="goToRentWithoutDeposit">
        <text class="item-text">免押租房</text>
        <uni-icons type="right" size="18" color="#999"></uni-icons>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      title: '运营配置'
    }
  },
  onLoad() {
    
  },
  methods: {
    goBack() {
      uni.navigateBack();
    },
    goToRentWithoutDeposit() {
      // 跳转到免押租房页面
      uni.showToast({
        title: '功能开发中',
        icon: 'none'
      });
      // 实际开发时可以使用以下代码跳转到对应页面
      // uni.navigateTo({
      //   url: '/pages/operation/rent-without-deposit/index'
      // });
    }
  }
}
</script>

<style lang="scss">
.operation-container {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.nav-bar {
  display: flex;
  align-items: center;
  height: 90rpx;
  background-color: #fff;
  padding: 0 30rpx;
  position: relative;
  
  .nav-left {
    position: absolute;
    left: 30rpx;
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  .nav-title {
    flex: 1;
    text-align: center;
    font-size: 36rpx;
    font-weight: 500;
    color: #333;
  }
}

.list-container {
  margin-top: 20rpx;
  background-color: #fff;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30rpx;
  border-bottom: 1rpx solid #f0f0f0;
  
  .item-text {
    font-size: 32rpx;
    color: #333;
  }
}
</style>